package com.ruoyi.project.system.file.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 文件管理对象 ruo_yi_file
 * 
 * @author ruoyi
 * @date 2021-10-20
 */
public class RuoYiFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long fileId;

    /** 用户id */
    private Long fileUserId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 文件唯一标识名称 */
    private String fileAliasName;

    /** 父级id */
    private Long fileParentId;

    /** 类型 */
    @Excel(name = "类型")
    private String fileType;

    /** 密码 */
    private String fileSecurity;

    /** 是否设置密码 */
    @Excel(name = "是否设置密码")
    private Long fileIsSecurity;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long fileSize;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date fileCreateTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setFileId(Long fileId)
    {
        this.fileId = fileId;
    }

    public Long getFileId()
    {
        return fileId;
    }
    public void setFileUserId(Long fileUserId)
    {
        this.fileUserId = fileUserId;
    }

    public Long getFileUserId()
    {
        return fileUserId;
    }
    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }
    public void setFileAliasName(String fileAliasName)
    {
        this.fileAliasName = fileAliasName;
    }

    public String getFileAliasName()
    {
        return fileAliasName;
    }
    public void setFileParentId(Long fileParentId)
    {
        this.fileParentId = fileParentId;
    }

    public Long getFileParentId()
    {
        return fileParentId;
    }
    public void setFileType(String fileType)
    {
        this.fileType = fileType;
    }

    public String getFileType()
    {
        return fileType;
    }
    public void setFileSecurity(String fileSecurity)
    {
        this.fileSecurity = fileSecurity;
    }

    public String getFileSecurity()
    {
        return fileSecurity;
    }
    public void setFileIsSecurity(Long fileIsSecurity)
    {
        this.fileIsSecurity = fileIsSecurity;
    }

    public Long getFileIsSecurity()
    {
        return fileIsSecurity;
    }
    public void setFileSize(Long fileSize)
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize()
    {
        return fileSize;
    }
    public void setFileCreateTime(Date fileCreateTime)
    {
        this.fileCreateTime = fileCreateTime;
    }

    public Date getFileCreateTime()
    {
        return fileCreateTime;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fileId", getFileId())
            .append("fileUserId", getFileUserId())
            .append("fileName", getFileName())
            .append("fileAliasName", getFileAliasName())
            .append("fileParentId", getFileParentId())
            .append("fileType", getFileType())
            .append("fileSecurity", getFileSecurity())
            .append("fileIsSecurity", getFileIsSecurity())
            .append("fileSize", getFileSize())
            .append("fileCreateTime", getFileCreateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
